/**
 * 系统设置接口
 * @namespace iConfig
 */
import { InterfaceProxy } from 'mider'
import { defaultOptions } from './_options'

/** @lends iConfig# */
const interfaceOpt = {
  findByConfigId: {
    name: '根据ID获取详情',
    url: '/v1/config-api/actions/findByConfigId',
    method: 'post',
    params: {
      query: {
        id: String
      }
    }
  },
  create: {
    name: '新增',
    url: '/v1/config-api/actions/create',
    method: 'post',
    params: Object
  },
  updateById: {
    name: '根据 ID 更新',
    url: '/v1/config-api/actions/updateById',
    method: 'post',
    params: {
      id: String,
      update: Object
    }
  }
}

/** @mixes iConfig */
const iConfig = new InterfaceProxy(interfaceOpt, defaultOptions)
export default iConfig
